<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>表单</title>
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css">
    <link rel="stylesheet" href="__PUBLIC__/static/css/style.css">
    <link rel="icon" href="__PUBLIC__/static/image/code.png">
</head>
<body class="body">
<div class="tab-top layui-box">
<a class="layui-btn site-demo-active layui-btn-sm" ><i class="layui-icon layui-icon-table"></i>元宝消费日志</a>

<div class="search">
  <form class="layui-form" action="">

     <div class="layui-input-inline top-search-date">
        <input type="text" name="searchdate" id="date1" autocomplete="off"  class="layui-input layui-input-sm" placeholder=" 开始时间 - 结束时间" value="{$searchdate}">
      </div>

        <div class="layui-input-inline">

        <select name="search" lay-verify="required" class="search-name" lay-search="">
          <option value="chrname" {$search=='chrname' ? 'selected=""' : ''}>玩家名</option>
          <option value="itemname" {$search=='itemname' ? 'selected=""' : ''}>物品名</option>
          <option value="buylv" {$search=='buylv' ? 'selected=""' : ''}>等级</option>
          <input type="hidden" name="id" value="{$id}">
        </select>
      </div>
  <div class="layui-inline">
    <input class="layui-input layui-input-sm" name="val" placeholder="请输入" id="search-elm" autocomplete="off" value="{$val}">
  </div>
  <button class="layui-btn site-demo-active layui-btn-sm search-btn" data-type="reload">搜索</button>
</form>
</div>
</div>

<div class="system-table-1 layui-clear" style="padding-top:10px;">

<table class="layui-table" lay-filter="parse-table-demo" lay-data="{height:'full-120',url:'{:url('admin/GameLog/ajaxconsume',\Request::param())}', page:true, id:'test',limit:'{:config('webconfig.page')}'}">
  <thead>
    <tr>
      <th lay-data="{field:'id', width:80, sort: true}">ID</th>
      <th lay-data="{field:'account', width:100}">帐户</th>
      <th lay-data="{field:'chrname', width:100}">玩家</th>
      <th lay-data="{field:'logtime', width:200}">时间</th>
      <th lay-data="{field:'vcoin', width:100}">元宝数</th>
      <th lay-data="{field:'itemid', width:80}">物品ID</th>
      <th lay-data="{field:'itemname', minwidth:120}">物品</th>
      <th lay-data="{field:'itemnum', width:80}">数量</th>
      <th lay-data="{field:'buylv', minwidth:120}">等级</th>
    </tr> 
  </thead>
</table>

</div>
<!-- 通用-970*90 -->
<script src="__PUBLIC__/layui/layui.js" charset="utf-8"></script>
<script src="__ADMIN__/js/comm.js" charset="utf-8"></script>
<script type="text/javascript">
layui.use(['form', 'table', 'laydate'], function() {
    var $ = layui.jquery,
        form = layui.form,
        laydate = layui.laydate,
        table = layui.table;


//日期时间范围
      laydate.render({
        elem: '#date1',
        type: 'datetime',
        range: true
      });

});
</script>



</body>
</html>